<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:SharePointSearchBench">


	<Style x:Key="mainGrid" TargetType="Grid">
		<Setter Property="Background">
			<Setter.Value>
				<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
					<GradientStop Color="#333333" Offset="0"/>
					<GradientStop Color="#333333" Offset=".7"/>
					<GradientStop Color="#9E7929" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="Menu">
		<Setter Property="Background">
			<Setter.Value>
				<SolidColorBrush Color="#E5D0A2"/>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="topLevelMenuItem" TargetType="MenuItem">
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush" Value="#cccccc"/>
		<Setter Property="Padding" Value="10,5,10,5"/>
		<Setter Property="Margin" Value="2,2,2,2"/>
	</Style>

	<Style x:Key="topLevelMenuItemIcon" TargetType="Image">
		<Setter Property="Height" Value="16"/>
		<Setter Property="Width" Value="16"/>
	</Style>

	<Style x:Key="containerBorderStyle" TargetType="Border">
		<Setter Property="CornerRadius" Value="10"/>
		<Setter Property="BorderThickness" Value="0"/>
		<Setter Property="BorderBrush" Value="Black"/>
		<Setter Property="Padding" Value="5"/>
		<Setter Property="Margin" Value="10"/>
		<Setter Property="Background">
			<Setter.Value>
				<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
					<GradientStop Color="#ffffff" Offset="0"/>
					<GradientStop Color="#FFC642" Offset=".3"/>
					<GradientStop Color="#FFC642" Offset=".6"/>
					<GradientStop Color="#ffffff" Offset="1"/>
				</LinearGradientBrush>

			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="queryTextBox" TargetType="TextBox">
		<Setter Property="FontSize" Value="12"/>
		<Setter Property="FontFamily" Value="Courier New"/>
		<Setter Property="Margin" Value="5"/>
		<Setter Property="Padding" Value="2"/>
	</Style>

	<Style x:Key="button" TargetType="Button">
		<Setter Property="FontSize" Value="12"/>
		<Setter Property="Margin" Value="10"/>
		<Setter Property="Padding" Value="4"/>
	</Style>

	<Style x:Key="smallHeading" TargetType="TextBlock">
		<Setter Property="FontSize" Value="12"/>
		<Setter Property="FontWeight" Value="Bold"/>
	</Style>

	<Style x:Key="smallHeadingLabel" TargetType="Label">
		<Setter Property="FontSize" Value="12"/>
		<Setter Property="FontWeight" Value="Bold"/>
		<Setter Property="Margin" Value="0,0,0,0"/>
	</Style>

	<Style x:Key="stackedComboBox" TargetType="ComboBox">
		<Setter Property="Margin" Value="0,0,0,5"/>
		<Setter Property="Padding" Value="2"/>
	</Style>

	<Style x:Key="stackedPasswordBox" TargetType="PasswordBox">
		<Setter Property="Margin" Value="0,0,0,5"/>
		<Setter Property="Padding" Value="2"/>
	</Style>

	<Style x:Key="textBox" TargetType="TextBox">
		<Setter Property="Padding" Value="2"/>
	</Style>

	<Style x:Key="radioButtonStyle" TargetType="RadioButton">
		<Setter Property="Margin" Value="5"/>
	</Style>

	<Style TargetType="{x:Type Button}">
		<Setter Property="Foreground" Value="#000000" />
		<Setter Property="Margin" Value="10" />
		<Setter Property="Height" Value="35" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Grid>
						<Rectangle x:Name="GelBackground"
						  Opacity="1" RadiusX="9"
						  RadiusY="9"
						  Fill="{TemplateBinding Background}"
						  StrokeThickness="0.35">
							<Rectangle.Stroke>
								<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
									<GradientStop Color="#999999" Offset="0" />
									<GradientStop Color="#333333" Offset="1" />
								</LinearGradientBrush>
							</Rectangle.Stroke>
						</Rectangle>
						<Rectangle x:Name="GelShine"
						  Margin="2,2,2,0"
						  VerticalAlignment="Top"
						  RadiusX="6"
						  RadiusY="6"
						  Opacity="1"
						  Stroke="Transparent"
						  Height="15px">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
									<GradientStop Color="#ccffffff" Offset="0"/>
									<GradientStop Color="Transparent" Offset="1"/>
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<StackPanel VerticalAlignment="Center" Margin="10">
							<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
						</StackPanel>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="Fill" TargetName="GelBackground">
								<Setter.Value>
									<RadialGradientBrush>
										<GradientStop Color="#9E7929" Offset="0" />
										<GradientStop Color="#9E7929" Offset=".3" />
										<GradientStop Color="Orange"  Offset="1" />
									</RadialGradientBrush>
								</Setter.Value>
							</Setter>
						</Trigger>
						<Trigger Property="IsPressed" Value="true">
							<Setter Property="Fill" TargetName="GelBackground">
								<Setter.Value>
									<RadialGradientBrush>
										<GradientStop Color="#00ccff" Offset="0"/>
										<GradientStop Color="#00ccff" Offset=".3"/>
										<GradientStop Color="#0099cc" Offset="1"/>
									</RadialGradientBrush>
								</Setter.Value>
							</Setter>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Style.Triggers>
			<Trigger Property="IsMouseOver" Value="True">
				<Setter Property="Foreground" Value="Black"/>
			</Trigger>
			<Trigger Property="IsPressed" Value="True">
				<Setter Property="Foreground" Value="Black"/>
			</Trigger>
		</Style.Triggers>
	</Style>

	<ObjectDataProvider x:Key="recentFilesSource" ObjectType="local:RecentFileCollection" />

	<ControlTemplate x:Key="groupBoxContainer" TargetType="GroupBox">
		<Border Style="{StaticResource containerBorderStyle}">
			<StackPanel>
				<Label Style="{StaticResource smallHeadingLabel}" Content="{TemplateBinding Header}"/>
				<ContentPresenter Content="{TemplateBinding Content}"/>
			</StackPanel>
		</Border>
	</ControlTemplate>

	<DataTemplate DataType="{x:Type local:RecentFile}">
		<TextBlock Text="{Binding Path}"/>
	</DataTemplate>


</ResourceDictionary>